package com.warm.orm.eq.sys.mapper.impl;

import com.easy.query.api4j.client.EasyQuery;
import com.easy.query.solon.annotation.Db;
import com.warm.orm.domain.sys.SysDept;
import com.warm.orm.eq.sys.mapper.SysDeptMapper;
import org.noear.solon.annotation.Component;

import java.util.List;
@Component
public class SysDeptMapperImpl implements SysDeptMapper {

    @Db
    private EasyQuery easyQuery;

    @Override
    public int checkDeptExistUser(Long deptId) {
        return 0;
    }

    @Override
    public SysDept checkDeptNameUnique(String deptName, Long parentId) {
        return null;
    }

    @Override
    public int deleteDeptById(Long deptId) {
        return 0;
    }

    @Override
    public int hasChildByDeptId(Long deptId) {
        return 0;
    }

    @Override
    public int insertDept(SysDept dept) {
        return 0;
    }

    @Override
    public List<SysDept> selectChildrenDeptById(Long deptId) {
        return null;
    }

    @Override
    public SysDept selectDeptById(Long deptId) {
        return null;
    }

    @Override
    public List<SysDept> selectDeptList(SysDept dept) {
        List<SysDept> deptList = this.easyQuery.queryable(SysDept.class).toList();
        return deptList;
    }

    @Override
    public List<Long> selectDeptListByRoleId(Long roleId, boolean deptCheckStrictly) {
        return null;
    }

    @Override
    public int selectNormalChildrenDeptById(Long deptId) {
        return 0;
    }

    @Override
    public int updateDept(SysDept dept) {
        return 0;
    }

    @Override
    public int updateDeptChildren(List<SysDept> depts) {
        return 0;
    }

    @Override
    public void updateDeptStatusNormal(Long[] deptIds) {

    }
}
